package com.tutucms.service.admin.model.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * Created by wangxudong on 2020/09/07.
 *
 * @version: 1.0
 * @modified :
 */
@Data
@ApiModel("添加文章对象")
public class AddArticleRo {

    @ApiModelProperty(value = "标题", required = false)
    private String title;

    @ApiModelProperty(value = "描述", required = false)
    private String subTitle;

    @NotEmpty(message = "目录code不能为空")
    @ApiModelProperty(value = "目录code")
    private String catalogCode;

    @ApiModelProperty(value = "图片List", required = false)
    private List<String> imagesList;

    @ApiModelProperty(value = "内容", required = false)
    private String content;

    @ApiModelProperty(value = "扩展字段", required = false)
    private String ext;

    @ApiModelProperty(value = "类型扩展字段", required = false)
    private String type;

    @ApiModelProperty(value = "文章封面", required = false)
    private String cover;

    @ApiModelProperty(value = "作者", required = false)
    private String author;
}
